<%@page import="java.util.LinkedList"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Calendar"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="GetData.DataWS"%>
<%@page import="dktc_ws.Phong"%> 
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<% DataWS ws = new DataWS();
    List<Phong> dsphong = ws.laydanhsachphong(-1);
 %>
 
<h2>Danh sách phòng học</h2>  
<table id="rounded-corner" summary="">
    <thead>
    <tr>
            <th scope="col" class="rounded-company">  </th>
            <th scope="col" class="rounded">Số phòng</th>
            <th scope="col" class="rounded">Sức chứa</th>
            <th scope="col" class="rounded">Tầng</th>
            <th scope="col" class="rounded">Sửa</th>
            <th scope="col" class="rounded-q4">Xóa</th>
        </tr>
    </thead>       
    <tbody> 
        <% for (int i=0;i<dsphong.size();i++)
                       {
            Phong p = dsphong.get(i);
            %>
        <tr>
            <td></td>
            <td><%=p.getSophong()%></td> 
            <td><%=p.getSucchua()%></td>
            <td><%=p.getTang()%></td>
            <td><a href="?page=edit_room&id=<%=p.getSophong()%>"><img src="images/user_edit.png" alt="" title="" border="0" /></a></td> 
            <td><a href="?page=delete_room&id=<%=p.getSophong()%>" class="ask"><img src="images/trash.png" alt="" title="" border="0" /></a></td> 
        </tr>      
    	      
        <%}%>         
    </tbody>
</table>
<a href="?page=add_room" class="bt_green"><span class="bt_green_lft"></span><strong>Thêm phòng</strong><span class="bt_green_r"></span></a> 
     <!--a href="#" class="bt_blue"><span class="bt_blue_lft"></span><strong>View all items from category</strong><span class="bt_blue_r"></span></a--> 


